package de.koller.aframe.plain.gui.component;

import de.koller.aframe.util.misc.ABoundingBox;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;

public class Panel extends Component {

	public Color background = Color.BLACK;
	
	@Override
	protected void drawThis( Graphics2D g ) {
		super.drawThis( g );
		
		ABoundingBox b = this.getFrameBounds();
		g.setColor( background );
		g.fill( new Rectangle2D.Float( b.x, b.y, b.w+1, b.h+1 ) );
	}
	
}
